import request from '@/utils/request'

// 查询拼多多订单列表
export function listBiPddOrderDwd(query) {
  return request({
    url: '/pdd/BiPddOrderDwd/list',
    method: 'get',
    params: query
  })
}

// 查询拼多多订单详细
export function getBiPddOrderDwd(id) {
  return request({
    url: '/pdd/BiPddOrderDwd/' + id,
    method: 'get'
  })
}

// 新增拼多多订单
export function addBiPddOrderDwd(data) {
  return request({
    url: '/pdd/BiPddOrderDwd',
    method: 'post',
    data: data
  })
}
// 新增拼多多订单
export function orderCostCalculatorByIds(data) {
  return request({
    url: '/pdd/BiPddOrderDwd/orderCostCalculatorByIds',
    method: 'post',
    data: data
  })
}
// 新增拼多多订单
export function orderCostCalculator(data) {
  return request({
    url: '/pdd/BiPddOrderDwd/orderCostCalculatorByTime',
    method: 'post',
    params: data
  })
}
// 修改拼多多订单
export function updateBiPddOrderDwd(data) {
  return request({
    url: '/pdd/BiPddOrderDwd',
    method: 'put',
    data: data
  })
}

// 删除拼多多订单
export function delBiPddOrderDwd(id) {
  return request({
    url: '/pdd/BiPddOrderDwd/' + id,
    method: 'delete'
  })
}
